package com.teamin.web.controller;

import com.teamin.web.common.exception.FileNotExistException;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class OoleController {

    @GetMapping(value = "/oole")
    public String exceptionHandler() {
        try {
            System.out.println(1/0);
        }catch (RuntimeException ex){
            throw new FileNotExistException();
        }
        return "exceptionHandler";
    }
}
